package com.money.controller;

import com.common.result.Result;
import com.money.service.GoldRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 路亚
 * @version 0.1
 * @className GoldRecordController
 * @description
 * @date 2024/12/27 16:03
 * @since jdk11
 */
@RestController
@RequestMapping("/gold/record")
@Slf4j
@RequiredArgsConstructor
@Api(tags = "用户钱包服务")
public class GoldRecordController {

    private final GoldRecordService goldRecordService;

    @PostMapping("/signIn")
    @ApiOperation(value = "签到")
    public Result signIn() {
        goldRecordService.signIn();
        return Result.success();
    }

    @PostMapping("/viewingTask")
    @ApiOperation(value = "看短剧任务")
    public Result viewingTask() {
        goldRecordService.viewingTask();
        return Result.success();
    }
}
